package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Praise;
import cn.wolfcode.trip.base.query.PraiseQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PraiseMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Praise record);

    Praise selectByPrimaryKey(@Param("userId") Long userId, @Param("typeId") Long typeId, @Param("type") Integer type);

    List<Praise> selectAll();

    int updateByPrimaryKey(Praise record);

    List<Praise> selectByReceiverId(PraiseQueryObject qo);

    void setRead(Long id);
}